<!DOCTYPE html>
<html>
<head>
	<title>分类</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
  <meta content="yes" name="apple-mobile-web-app-capable" />
  <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  <meta content="telephone=no" name="format-detection" />
  <link href="{G_TEMPLATES_CSS}/wx/style.css" rel="stylesheet">
  <link href="{G_TEMPLATES_CSS}/wx/comm.css" rel="stylesheet">
  <script src="{G_TEMPLATES_JS}/wx/jquery-2.1.4.min.js"></script>

  <style>
    body{
     background-color:#F3F3F3;
   }
   .header{
     background-color:#FFF;
     box-shadow:2px 3px 5px #E1E1E1;
   }
   .tittle{
    color:#000;
  }
  .shaidan-back{
    width:10px;
    height:15px;
    margin-top:22.5px;	
  }
  .edit{
    width:20px;
    height:20px;
    margin-top:20px;
  }
  .back-name{
    color:#000;
    margin-left:5px;
  }
  .jx-date{
   margin-top:10px;
 }
</style>
</head>
<body>
  {wc:templates "mobile/index","header"} 
  <script>
   $(".shaidan-back").attr("src","{G_TEMPLATES_IMAGE}/wx/fanhui.png");
   $(".edit").attr("src","{G_TEMPLATES_IMAGE}/wx/zhuye.png");
 </script>

 <div class="fl-list">
   <ul>
     {wc:loop $category $category}
     <li>
      <!--  {G_TEMPLATES_IMAGE}/wx/dzkj.png -->
      
      {wc:if $category['thumb']}
      <img src="{G_UPLOAD_PATH}/{wc:$category['thumb']}" class="fl-img">
      {wc:else}
      <img src="{G_TEMPLATES_IMAGE}/wx/dzkj.png" class="fl-img">
      {wc:if:end}
      <div class="fl-zz">
        <span class="fl-font">{wc:$category['name']}</span><br />
        <img src="{G_TEMPLATES_IMAGE}/wx/sj.png" class="fl-sj">
      </div>

      <ul class="goods-fl">
        <? $parentid= $category['cateid'] ?>
        {wc:getlist sql="select * from `@#_category` where `parentid`= '$parentid'"}
        {wc:loop $data $cate}
        <a href="javascript:void(0)"><li>{wc:$cate['name']}</li></a>
        {wc:loop:end}
        {wc:getlist:end}
      </ul>
    </li>
    {wc:loop:end}
  </ul>
</div>
{wc:templates "mobile/index","footer"}

</body>
</html>
